import request from '@/utils/request'
// 知识点: axios默认会把data(请求体)参数对象转成ISON字符串发给后台
// 自己携请求头Content-Type: application/json(可看network调试)

export const loginAPI = (data) => {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}
